package com.buybuyyi.stylistcrm.order.dao.impl;

import com.buybuyyi.stylistcrm.order.dao.ConsigneeDao;
import com.buybuyyi.stylistcrm.order.mapper.ConsigneeMapper;
import com.buybuyyi.stylistcrm.order.po.Consignee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by cheny on 2016/9/24.
 */
@Repository
public class ConsigneeDaoImpl implements ConsigneeDao {

    @Autowired
    private ConsigneeMapper consigneeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return consigneeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Consignee record) {
        return consigneeMapper.insert(record);
    }

    @Override
    public int insertSelective(Consignee record) {
        return consigneeMapper.insertSelective(record);
    }

    @Override
    public Consignee selectByPrimaryKey(Integer id) {
        return consigneeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Consignee record) {
        return consigneeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Consignee record) {
        return consigneeMapper.updateByPrimaryKey(record);
    }
}
